package com.groovy.base.genericity

class GroovyGenericity {

    static void main(String[] args) {
        // Creating a generic List collection
        ListType<String> lststr = new ListType<>();
        lststr.set("First String");
        println(lststr.get());

        ListType<Integer> lstint = new ListType<>();
        lstint.set(1);
        println(lstint.get());
    }



}
